Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
@sewing-kit/core
Advanced tools
@sewing-kit/core
Sewing-kit parses the shape of a codebase by modeling it into concepts it understands. At a high-level these these concepts are a Workspace
and Project
.
A Project
can be a either a Package
(NPM library), WebApp
(a react app) or Service
(a Node.js server).
A Workspace
is a composition of Project
s. It includes all the WebApp
, Package
, and Services
for a given codebase.
Workspace
, WebApp
, Package
, and Service
all extend a Base
class. The Base
class provides a number of useful properties for the classes extending it. These include the a root directory, the NPM dependencies used, and an fs
property which should be used for all FileSystem
related operations.
Important classes to highlight here are TargetRuntime
and TargetBuilder
. In the context of sewing-kit, a target refers to the build output for a given Project
.
The TargetRuntime
class contains information about the runtime for a build target (eg. Does the build run in a Node.js or browser runtime?). This class provides a static utility, TargetRuntime.fromProject
, to generate the TargetRuntime for a given Project
.
This class is foundational to how sewing-kit generates build outputs for a given project. It's heavily used by the sewing-kit build
CLI command. This class can also be used to plugin authors to generate custom build outputs (eg. multi-browser and multi-locale builds).
yarn add @sewing-kit/core --dev
FAQs
The core data models for sewing-kit-next
The npm package @sewing-kit/core receives a total of 67 weekly downloads. As such, @sewing-kit/core popularity was classified as not popular.
We found that @sewing-kit/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.